#include<stdio.h>
int main()
{
    unsigned width,precision;
    int number=356;
    double weight=242.5;

    scanf("%d",&width);  //输入字段宽度
    //printf("*%6d*\n",number);
    printf("*%*d*\n",width,number);
    scanf("%d %d",&width,&precision);  
    printf("*%*.*f*\n",width,precision,weight);

    return 0;
}